<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
//$sessdata["displaymessage"]=display_message($sessdata["displaymessage"]);

$sql="SELECT id, linkname, linkurl FROM quicklinks WHERE id='".$_REQUEST["id"]."'";
$row=db_fetch_result(run_mysql_query($sql));
?>

<form method="post" action="query_quicklinks.php" name="editquicklinks">

    <table border="0" cellpadding="5" cellspacing="1" class="tablecolor1">
		<tr align="left">
			<td class="tablecolor2"><b>Link Name:</b></td>
			<td class="tablecolor6"><input type="text" name="linkname" size="50" value="<?=$row["linkname"];?>" /></td>
		</tr>
		<tr align="left">
			<td class="tablecolor2"><b>Link URL:</b></td>
			<td class="tablecolor6"><input type="text" name="linkurl" size="50" value="<?=urldecode($row["linkurl"]);?>" /></td>
		</tr>
    </table>
    
    <input type="hidden" name="action" value="editquicklinks" />
    <input type="hidden" name="id" value="<?=$_REQUEST["id"];?>" />
</form>

<br />

<button class="button2" onclick="javascript:document.editquicklinks.submit()">Save</button>

<br />
